package com.yuyi.tool;

import java.text.SimpleDateFormat;

public class DateTimeTool
{
  public static String LongDatatoTime(Long time)
  {
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    return df.format(time);
  }
  
  public static String LongDatatoData(Long time)
  {
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
    return df.format(time);
  }
  
  public static Long getCurrentTime()
  {
    return Long.valueOf(System.currentTimeMillis());
  }
}
